from rest_framework.generics import CreateAPIView,GenericAPIView
from erp_system.models import UserModel
from erp_system.serializer.user_serializer import UserRegisterSerializer


class RegisterView(CreateAPIView):
    """
    create:
    注册用户

    参数：username，password必须传递，phone，real_name 可选择传递 return：添加之后返回user对象
    """
    queryset = UserModel.objects.all()
    serializer_class = UserRegisterSerializer

